package org.zsl.service;

import org.zsl.model.ResponseMsg;
import org.zsl.model.User;

public class UserService {

     public ResponseMsg login(User user){

          ResponseMsg responseMsg = new ResponseMsg();
          responseMsg.setSuccess(false);

         if(user.getUsername().equals("admin")&&user.getPassword().equals("123")){
              responseMsg.setSuccess(true);
         }
         return  responseMsg;
     }


     public ResponseMsg  query(){
         return  new ResponseMsg();
     }
}
